package com.oop.Student;

/*
要写注释哦!!!
*/
public class Student {
    private String name;
    private int age;

    public void stary(String name) {
        System.out.println(this.name+"年龄"+age + "和" + name + "正在手拉手一起学习！");
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return this.name;
    }

    public void setAge(int age) {
        if (age < 0 || age > 150) {
            System.out.println("你是人吗？");
        } else {
            this.age = age;
        }
    }

    public int getAge() {
        return this.age;
    }

}
